package lac.serviceflow.cfg.model;

import java.util.List;

import lac.model.core.cfg.BasicProperty;
import lac.model.core.cfg.CollectionProperty;
import lac.model.core.cfg.IdProperty;
import lac.model.core.cfg.ModelDescribe;
import lac.model.core.cfg.Type;

public class FlowMethodModelDescribe extends ModelDescribe {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1336782185096358498L;
	
	
	public FlowMethodModelDescribe() {
		this.setName("ServiceFlowMethod");
		this.setTableName("pt_serviceflow_method");
		this.setIdProperty(new IdProperty());
		List<BasicProperty> basicProperties = this.getBasicProperties();
		basicProperties.add(new BasicProperty(Type.String, "serviceUnitName", "st_serviceunit_name", 50));
		basicProperties.add(new BasicProperty(Type.String, "methodName", "st_method_name", 50));
		basicProperties.add(new BasicProperty(Type.Integer, "sort", "n_sort"));
		basicProperties.add(new BasicProperty(Type.String, "condition", "st_condition", 100));
		
		
		List<CollectionProperty> collectionProperties = this.getCollectionProperties();
		collectionProperties.add(new CollectionProperty("flowMethodParams", "st_flowMethod_id", "ServiceFlowMethodParam"));
	}

}
